<?php

namespace App\Library\Requests\Handbook;

use App\Library\Requests\Base\BaseDTORequest;
use App\Library\Rules\MediasImgRule;

class HandbookAddRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            'title' => 'required|string|max:50',
            'url' => 'required|string|url|max:500',
            'remark' => 'nullable|string|max:200',
            'fileIds' => ['nullable', 'array', new MediasImgRule],
        ];
    }
}
